﻿using System;

namespace Gqq.CSharpindepth2.DesignPatterns.ObserverCollection
{
    public class Cat : Subject
    {
        public override void SubAction()
        {
            Console.WriteLine("miao...");
            base.SubAction();
        }

        public static void DoTest()
        {
            Subject cat = new Cat();
            cat.Regist(new Master());
            cat.Regist(new Mouse());
            cat.SubAction();
        }
    }
}
